/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Pruebas.Manolo;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Image;
import java.net.MalformedURLException;
import java.util.LinkedList;
import javax.swing.JDesktopPane;
import javax.swing.JInternalFrame;
import javax.swing.JPanel;

/**
 *
 * @author kjh
 */
public class PruebaFrame extends Frame{
    
  
    public static void main(String[] args) throws MalformedURLException{
        PruebaFrame nuevo = new PruebaFrame();
        nuevo.setSize(400,400);
        LinkedList<Image> cola = new LinkedList<>();
        JDesktopPane panel = new JDesktopPane();
        JInternalFrame ventana = new JInternalFrame();
        //TestMotionDetection_1 motion = new TestMotionDetection_1(cola);
        //Thread t = new Thread(motion);
        //t.start();
        JPanel interno = new JPanel();
        interno.setBackground(Color.red);
        ventana.setContentPane(interno);
       // ventana.add(motion);
        ventana.setVisible(true);
        panel.setLayout(new BorderLayout());
        panel.add(ventana, BorderLayout.CENTER);
        nuevo.add(panel);
        nuevo.setVisible(true);
        int cont=0;
        while(true){
            System.out.println(cont++);
        }
    }
}
